package net.southbird.cas;
/**
 * 
 * @author lfzxs@qq.com
 * @CreateDate May 26, 2010
 */
public class WebUtil {

	/**
	 * get host name
	 * @param url
	 * @return  host name
	 */
	public final static String getHost(String url){
    	int index = url.indexOf("//") ;
    	index = url.indexOf("/",index+2) ;
    	String host = url.substring(0,index) ;
 		return host ;
    }
}
